// @ts-ignore
import React from 'react';
// @ts-ignore
import { Input, Space } from 'antd';
// @ts-ignore
import type { SearchProps } from 'antd/es/input/Search';

const { Search } = Input;



const onSearch: SearchProps['onSearch'] = (value, _e, info) => console.log(info?.source, value);

const App: React.FC = () => (
  <Space direction="vertical">


    <Search
      placeholder="input search text"
      allowClear
      enterButton
      size="large"
      onSearch={onSearch}
    />

  </Space>
);

export default App;
